<template>
  <div>
    <a-button type="primary" @click="change">改变主题颜色</a-button>
  </div>
</template>
<script setup>
import { useGlobalStore } from '@/store/modules/global'
import { useTheme } from '@/hooks/useTheme'
import { listAPI } from '@/api/list'

const { changePrimaryColor } = useTheme()
const globalStore = useGlobalStore()
const change = () => {
  changePrimaryColor('#a61d24')
}

onMounted(() => {
  Promise.all([listAPI.get1(), listAPI.get2()]).then(function (results) {
    const acct = results[0]
    const perm = results[1]
    console.log(results)
  })
})
</script>
<style></style>
